package com.googlecode.silicoin.gen;

public class Property {

	/**
	 * 字段名称
	 */
	private String name;

	/**
	 * 对应数据库字段名
	 */
	private String column;

	/**
	 * 字段类型
	 */
	private String type;

	/**
	 * 字段长度
	 */
	private Integer length;

	public Property() {
	}

	public Property(String type, String name, String column, Integer length) {
		this.name = name;
		this.type = type;
		this.column = column;
		this.length = length;
	}

	public Property(Class<?> type, String name, String column, Integer length) {
		this.name = name;
		this.type = type.getName();
		this.column = column;
		this.length = length;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public Integer getLength() {
		return length;
	}

	public void setLength(Integer length) {
		this.length = length;
	}

}
